﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Cs2102BookingSystem.Models.CLIENT>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Register
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Register</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Account Information</legend>
            <div class="editor-label">
            <table cellpadding="10px" style="border-spacing:10px">
            <tr>
                <td style="width: 150px">
                Email
                </td>
                <td >
                    <%: Html.TextBoxFor(model => model.EMAIL) %>
                </td>
                <td></td><td></td>
                <td rowspan="8">
                    <%: Html.ValidationMessageFor(model => model.EMAIL)%><br />
                    <%: Html.ValidationMessageFor(model => model.PWD) %><br />
                    <%: Html.ValidationMessageFor(model => model.DESIGNATION) %><br />
                    <%: Html.ValidationMessageFor(model => model.FIRSTNAME) %><br />
                    <%: Html.ValidationMessageFor(model => model.LASTNAME) %><br />
                </td>
            </tr>
            <tr>
                <td style="width: 150px">Password
                </td>
                <td>                
                <%: Html.PasswordFor(model => model.PWD) %>
                </td>
            </tr>
               <tr>
               <td>Name:</td>
               <td colspan="2">                
               <%: Html.DropDownListFor(model => model.DESIGNATION, new[] {
                                        new SelectListItem { Value = "Mr", Text = "Mr" },
                                        new SelectListItem { Value = "Ms", Text = "Ms" },
                                        new SelectListItem { Value = "Miss", Text = "Miss" },
                                        new SelectListItem { Value = "Dr.", Text = "Dr." },
                                        }
                                                                                    
                )%>
                <%: Html.TextBoxFor(model => model.FIRSTNAME, new { @Value = "First Name" }) %>
                </td>
               <td><%: Html.TextBoxFor(model => model.LASTNAME, new { @Value = "Last Name" })%></td>
               </tr>
                <tr>
                    <td style="width: 150px" >Passport Number</td>
                    <td>                
                        <%: Html.TextBoxFor(model => model.PASSPORTNO) %>
                    </td>
                    <td>
                        <%: Html.ValidationMessageFor(model => model.PASSPORTNO) %>
                    </td>
                </tr>
                <tr>
                    <td style="width: 150px">Contact
                    </td>
                    <td>                
                        <%: Html.TextBoxFor(model => model.CONTACT) %>
                    </td>
                    
                    <td>
                        <%: Html.ValidationMessageFor(model => model.CONTACT) %>
                    </td>
                </tr>
                <tr>
                    <td style="width: 150px">Gender</td>
                    <td>M
                        <%: Html.RadioButtonFor(model => model.GENDER, "M") %> F
                        <%: Html.RadioButtonFor(model => model.GENDER, "F") %>
                    </td>
                    
                    <td>
                        <%: Html.ValidationMessageFor(model => model.GENDER) %>
                    </td>
                </tr>
                <tr>
                    <td style="width: 150px">Address</td>
                    <td>                
                        <%: Html.TextBoxFor(model => model.ADDRESS) %>
                    </td>
                    <td>
                        <%: Html.ValidationMessageFor(model => model.ADDRESS) %>
                    </td>
                </tr>
                <tr>
                    <td style="width: 150px">Country</td>
                    <td>                
                        <%: Html.TextBoxFor(model => model.COUNTRY)%>
                    </td>
                    <td>
                        <%: Html.ValidationMessageFor(model => model.COUNTRY)%>
                    </td>
                </tr>
            </table>          
            </div>

            <p>
                <input type="submit" value="Submit" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>

